@extends('layouts.admin')
@section('title') @parent 文章分类管理 @stop
@section('beforeStyle')
{{ HTML::style('lib/css/jquery.ui.datepicker.css') }}
{{ HTML::style('lib/css/jquery-ui-timepicker-addon.css') }}
@stop

@section('page_title')@parent
活动添加
@show
@section('breadcrumb')@parent
{{ Breadcrumbs::render('promotion-create') }}
@show
@section('content')
<div class="row">
    <div class="col-xs-12">
        <div class="box">
            <div class="box-header">
             <h3 class="box-title">添加活动</h3>
            </div><!-- /.box-header -->
            <form fole="form" method="post" action="{{ route('admin.promotion.store') }}" enctype="multipart/form-data">
            <input type="hidden" name="_token" value="<?php echo csrf_token(); ?>">
            <div class="box-body">
                <div class="form-group">
                    <label for="cat_title">活动名称</label>
                    <input type="text" name="name" id="name" placeholder="活动名称" value="" />
                </div>
                <div class="form-group">
                    <label for="keys">主讲人</label>
                    <input type="text" name="speaker" id="speaker" placeholder="主讲人" value="" />
                </div>
				<div class="form-group">
						<label>活动图片</label>
						<div class="controls">
							<div class="input-group">
								 <input class="input-file" name="img" type="file">
							</div>
						</div>
				</div>
				<div class="form-group">
						<label for="coupon_intro">活动介绍</label>
						<textarea cols="80" rows="10" name="content" id="content" style="visibility: hidden; display: none;" class="form-control"></textarea>
				</div>
				<div class="form-group">
						<label>报名截止时间</label>
						<div class="input-group">
								<input name="apply_end_time" type="text" class="form-control" value="{{ Input::old('apply_end_time') }}" placeholder="2015-04-01 18:00:00" id="apply_end_time" required>
						</div>
				</div>
				<div class="form-group">
						<label>开讲时间</label>
						<div class="input-group">
							<input name="promotion_start_time" type="text" class="form-control" value="{{ Input::old('promotion_start_time') }}" placeholder="2015-04-01 18:00:00" id="promotion_start_time" required>
						</div>
				</div>
                <div class="form-group">
                    <label for="keys">视频链接</label>
                    <input type="text" name="video" id="video" placeholder="http://www.youku.com/" value="" />
                </div>
                
            </div><!-- /.box-body -->
            <div class="box-footer">
                <button class="btn btn-primary" type="submit">保存</button>
            </div>
            </form>
        </div><!-- /.box -->
    </div>
</div>
@stop
@section('end')
    @parent
{{ HTML::script("/js/jquery-ui-1.11.1.min.js") }}
{{ HTML::script("/js/jquery-ui-timepicker-addon.js") }}
{{ HTML::script("/js/jquery.ui.datepicker-zh-CN.js.js") }}
{{ HTML::script("/js/jquery-ui-timepicker-zh-CN.js") }}
{{ HTML::script("/ckeditor/ckeditor.js") }}
<script>
$(function() {
			CKEDITOR.replace('content'	, {
						height: 250,
						extraPlugins: 'colorbutton,colordialog'
			});	
			$('#apply_end_time').datetimepicker({
						timeFormat: "HH:mm:ss",
						dateFormat: "yy-mm-dd",
				});
			$('#promotion_start_time').datetimepicker({
						minDate: -0,
						timeFormat: "HH:mm:ss",
						dateFormat: "yy-mm-dd",
						hour:23,
						minute:59,
						second:59,

				});
	
});
</script>
@stop